#Compiladores
CXX=g++

BIANCHINI=/home/ec2002/ra005113

LIBGIP=$(BIANCHINI)/libgip


#Bibliotecas
WXLIBS=-L$(BIANCHINI)/wxlib/lib -pthread -L/usr/X11R6/lib

WXLINK=-lgip -lwx_gtk2_xrc-2.6 -lwx_gtk2_qa-2.6 -lwx_gtk2_html-2.6 -lwx_gtk2_adv-2.6 -lwx_gtk2_core-2.6 -lwx_base_xml-2.6 -lwx_base_net-2.6 -lwx_base-2.6

WXINCLUDE=-I$(LIBGIP)/../wxlib/include

#Rules
#all: simple.cpp
#        $(CXX) simple.cpp $(WXLIBS) $(WXLINK) $(WXINCLUDE) -o simple
#clean:
#        $(RM) *~ simple

PROJECT1=../..
PROJECT2=../../project-02
PROJECT3=..

OBJS=$(PROJECT3)/src/light.o $(PROJECT3)/src/sphere.o $(PROJECT3)/src/raytrace.o

CPPFLAGS= -I$(LIBGIP)/include -I$(PROJECT3)/include -I$(PROJECT2)/include -I$(PROJECT1)/include -I. -I/usr/include -L$(LIBGIP)/lib -L$(PROJECT3)/src  -L$(PROJECT2)/src -L$(PROJECT1)/src $(WXLIBS) -g



all:
	g++ -c gui.cpp $(CPPFLAGS)
	gcc -c guistub.c $(CPPFLAGS)
	g++ -o gui $(OBJS) gui.o guistub.o $(CPPFLAGS) -L/usr/lib -Lsrc -L../../project-02/gui -L../../project-02/src -L../../project-02/gui/libgip/lib -L/home/ec2002/ra005113/wxlib/lib -L/usr/X11R6/lib -lSDL -lSDL -lpthread -lm -lmc930 -lmc930 -lmc930_proj2 -lgip -lwx_gtk2_xrc-2.6 -lwx_gtk2_qa-2.6 -lwx_gtk2_html-2.6 -lwx_gtk2_adv-2.6 -lwx_gtk2_core-2.6 -lwx_base_xml-2.6


teste:
	gcc $(OBJS) guistub.c $(CPPFLAGS) -o gui -lSDL -lSDL -lpthread -lm -lmc930 -lmc930 -lmc930_proj2 -lmc930_proj3 -lgip -lwx_gtk2_xrc-2.6 -lwx_gtk2_qa-2.6 -lwx_gtk2_html-2.6 -lwx_gtk2_adv-2.6 -lwx_gtk2_core-2.6 -lwx_base_xml-2.6


clean:

	rm *.o gui
